from PyQt5.Qt import *
import sys
class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.UIinit()
    def UIinit(self):
        self.setWindowTitle("gaokai")
        self.setGeometry(100,200,1200,500)
        self.menuBar().addMenu("文件")



if __name__ == '__main__':

    app=QApplication(sys.argv)
    mainwindow=MainWindow()
    mainwindow.show()
    sys.exit(app.exec())